<?php
namespace App\Services\Usere;
use App\Model\Usera;
class UsereEdit{
    public $usere;
    public function __construct()
    {
        $this->usere = new Usera();
    }
    //查询一条数据
    public function find(int $id){
        return $this->usere ->find($id);
    }
    //修改数据
    public function edit(array &$params){
        return $this->usere->edit($params);
    }
    //修改密码
    public function modifyPwd($userId,$nPwd){
        return Usera::where('id',$userId)->update($nPwd);
    }
}
